package com.meilai.project.dto.business.intentionScheme;

import com.meilai.project.entity.business.building.BuildingArea;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;

/**
 * @author xchen
 * @since 2022-02-20
 */
@Data
@ApiModel
public class BuildingInfo {
	@ApiModelProperty("id")
	private Long id;
	@ApiModelProperty("纬度")
	private BigDecimal lat;
	@ApiModelProperty("经度")
	private BigDecimal lng;

	public BuildingArea to() {
		BuildingArea buildingArea = new BuildingArea();
		buildingArea.setId(this.getId());
		buildingArea.setLat(this.getLat());
		buildingArea.setLng(this.getLng());
		return buildingArea;
	}
}
